.class public Lcom/example/m6wmr/CartlistActivity;
.super Landroid/app/Activity;
.source "CartlistActivity.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/example/m6wmr/CartlistActivity$viewClickListener;
    }
.end annotation


# static fields
.field public static CartAc:Lcom/example/m6wmr/CartlistActivity;


# instance fields
.field private areaid:Ljava/lang/String;

.field private cursor:Landroid/database/Cursor;

.field private db:Landroid/database/sqlite/SQLiteDatabase;

.field private gdcost:D

.field private gdshu:I

.field public h:Landroid/os/Handler;

.field private helper:Ldbclass/DBOpenHelper;

.field m:Lmyapp/MyApp;

.field private mcontext:Landroid/content/Context;

.field private shopids:Ljava/lang/String;

.field shoplayout:Landroid/widget/LinearLayout;

.field private shopstr:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 44
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 45
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/CartlistActivity;->areaid:Ljava/lang/String;

    .line 46
    iput-object v1, p0, Lcom/example/m6wmr/CartlistActivity;->m:Lmyapp/MyApp;

    .line 49
    iput-object v1, p0, Lcom/example/m6wmr/CartlistActivity;->h:Landroid/os/Handler;

    .line 50
    iput-object v1, p0, Lcom/example/m6wmr/CartlistActivity;->shoplayout:Landroid/widget/LinearLayout;

    .line 51
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/CartlistActivity;->shopstr:Ljava/lang/String;

    .line 54
    iput-object v1, p0, Lcom/example/m6wmr/CartlistActivity;->cursor:Landroid/database/Cursor;

    .line 55
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/CartlistActivity;->shopids:Ljava/lang/String;

    .line 56
    const/4 v0, 0x0

    iput v0, p0, Lcom/example/m6wmr/CartlistActivity;->gdshu:I

    .line 57
    const-wide/16 v0, 0x0

    iput-wide v0, p0, Lcom/example/m6wmr/CartlistActivity;->gdcost:D

    .line 44
    return-void
.end method

.method static synthetic access$0(Lcom/example/m6wmr/CartlistActivity;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 48
    iget-object v0, p0, Lcom/example/m6wmr/CartlistActivity;->mcontext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$1(Lcom/example/m6wmr/CartlistActivity;)Landroid/database/sqlite/SQLiteDatabase;
    .locals 1

    .prologue
    .line 53
    iget-object v0, p0, Lcom/example/m6wmr/CartlistActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    return-object v0
.end method

.method static synthetic access$2(Lcom/example/m6wmr/CartlistActivity;)Landroid/database/Cursor;
    .locals 1

    .prologue
    .line 54
    iget-object v0, p0, Lcom/example/m6wmr/CartlistActivity;->cursor:Landroid/database/Cursor;

    return-object v0
.end method

.method static synthetic access$3(Lcom/example/m6wmr/CartlistActivity;)Ldbclass/DBOpenHelper;
    .locals 1

    .prologue
    .line 52
    iget-object v0, p0, Lcom/example/m6wmr/CartlistActivity;->helper:Ldbclass/DBOpenHelper;

    return-object v0
.end method

.method static synthetic access$4(Lcom/example/m6wmr/CartlistActivity;Landroid/database/Cursor;)V
    .locals 0

    .prologue
    .line 54
    iput-object p1, p0, Lcom/example/m6wmr/CartlistActivity;->cursor:Landroid/database/Cursor;

    return-void
.end method

.method static synthetic access$5(Lcom/example/m6wmr/CartlistActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 55
    iget-object v0, p0, Lcom/example/m6wmr/CartlistActivity;->shopids:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$6(Lcom/example/m6wmr/CartlistActivity;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 55
    iput-object p1, p0, Lcom/example/m6wmr/CartlistActivity;->shopids:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$7(Lcom/example/m6wmr/CartlistActivity;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 51
    iput-object p1, p0, Lcom/example/m6wmr/CartlistActivity;->shopstr:Ljava/lang/String;

    return-void
.end method


# virtual methods
.method public Inishop()V
    .locals 0

    .prologue
    .line 247
    return-void
.end method

.method public bindbtn()V
    .locals 3

    .prologue
    .line 232
    const v2, 0x7f0c0001

    invoke-virtual {p0, v2}, Lcom/example/m6wmr/CartlistActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    .line 233
    .local v0, "closebtn":Landroid/widget/ImageView;
    new-instance v2, Lcom/example/m6wmr/CartlistActivity$2;

    invoke-direct {v2, p0}, Lcom/example/m6wmr/CartlistActivity$2;-><init>(Lcom/example/m6wmr/CartlistActivity;)V

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 239
    const v2, 0x7f0c0016

    invoke-virtual {p0, v2}, Lcom/example/m6wmr/CartlistActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Lcom/example/location/BottomMenu;

    .line 240
    .local v1, "menu":Lcom/example/location/BottomMenu;
    const-string v2, "cart"

    invoke-virtual {v1, v2}, Lcom/example/location/BottomMenu;->SetOn(Ljava/lang/String;)V

    .line 242
    return-void
.end method

.method public cartCount(I)V
    .locals 8
    .param p1, "shopdoid"    # I

    .prologue
    .line 208
    const/4 v1, 0x0

    iput v1, p0, Lcom/example/m6wmr/CartlistActivity;->gdshu:I

    .line 209
    const-wide/16 v1, 0x0

    iput-wide v1, p0, Lcom/example/m6wmr/CartlistActivity;->gdcost:D

    .line 211
    iget-object v1, p0, Lcom/example/m6wmr/CartlistActivity;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v1}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v1

    .line 212
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "select * from cart where shopid="

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x0

    .line 211
    invoke-virtual {v1, v2, v3}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v1

    iput-object v1, p0, Lcom/example/m6wmr/CartlistActivity;->cursor:Landroid/database/Cursor;

    .line 214
    :try_start_0
    iget-object v1, p0, Lcom/example/m6wmr/CartlistActivity;->cursor:Landroid/database/Cursor;

    if-eqz v1, :cond_0

    .line 215
    :goto_0
    iget-object v1, p0, Lcom/example/m6wmr/CartlistActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v1}, Landroid/database/Cursor;->moveToNext()Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result v1

    if-nez v1, :cond_2

    .line 224
    :cond_0
    iget-object v1, p0, Lcom/example/m6wmr/CartlistActivity;->cursor:Landroid/database/Cursor;

    if-eqz v1, :cond_1

    .line 225
    iget-object v1, p0, Lcom/example/m6wmr/CartlistActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v1}, Landroid/database/Cursor;->close()V

    .line 230
    :cond_1
    :goto_1
    return-void

    .line 217
    :cond_2
    :try_start_1
    iget-wide v1, p0, Lcom/example/m6wmr/CartlistActivity;->gdcost:D

    iget-object v3, p0, Lcom/example/m6wmr/CartlistActivity;->cursor:Landroid/database/Cursor;

    iget-object v4, p0, Lcom/example/m6wmr/CartlistActivity;->cursor:Landroid/database/Cursor;

    const-string v5, "goodscost"

    invoke-interface {v4, v5}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v4

    invoke-interface {v3, v4}, Landroid/database/Cursor;->getDouble(I)D

    move-result-wide v3

    iget-object v5, p0, Lcom/example/m6wmr/CartlistActivity;->cursor:Landroid/database/Cursor;

    iget-object v6, p0, Lcom/example/m6wmr/CartlistActivity;->cursor:Landroid/database/Cursor;

    const-string v7, "goodscount"

    invoke-interface {v6, v7}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v6

    invoke-interface {v5, v6}, Landroid/database/Cursor;->getInt(I)I

    move-result v5

    int-to-double v5, v5

    mul-double/2addr v3, v5

    add-double/2addr v1, v3

    iput-wide v1, p0, Lcom/example/m6wmr/CartlistActivity;->gdcost:D

    .line 218
    iget v1, p0, Lcom/example/m6wmr/CartlistActivity;->gdshu:I

    iget-object v2, p0, Lcom/example/m6wmr/CartlistActivity;->cursor:Landroid/database/Cursor;

    iget-object v3, p0, Lcom/example/m6wmr/CartlistActivity;->cursor:Landroid/database/Cursor;

    const-string v4, "goodscount"

    invoke-interface {v3, v4}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v3

    invoke-interface {v2, v3}, Landroid/database/Cursor;->getInt(I)I

    move-result v2

    add-int/2addr v1, v2

    iput v1, p0, Lcom/example/m6wmr/CartlistActivity;->gdshu:I
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    .line 221
    :catch_0
    move-exception v0

    .line 222
    .local v0, "e":Ljava/lang/Exception;
    :try_start_2
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    .line 224
    iget-object v1, p0, Lcom/example/m6wmr/CartlistActivity;->cursor:Landroid/database/Cursor;

    if-eqz v1, :cond_1

    .line 225
    iget-object v1, p0, Lcom/example/m6wmr/CartlistActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v1}, Landroid/database/Cursor;->close()V

    goto :goto_1

    .line 223
    .end local v0    # "e":Ljava/lang/Exception;
    :catchall_0
    move-exception v1

    .line 224
    iget-object v2, p0, Lcom/example/m6wmr/CartlistActivity;->cursor:Landroid/database/Cursor;

    if-eqz v2, :cond_3

    .line 225
    iget-object v2, p0, Lcom/example/m6wmr/CartlistActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v2}, Landroid/database/Cursor;->close()V

    .line 227
    :cond_3
    throw v1
.end method

.method public getShopSource()Z
    .locals 1

    .prologue
    .line 251
    new-instance v0, Lcom/example/m6wmr/CartlistActivity$3;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/CartlistActivity$3;-><init>(Lcom/example/m6wmr/CartlistActivity;)V

    .line 316
    invoke-virtual {v0}, Lcom/example/m6wmr/CartlistActivity$3;->start()V

    .line 317
    const/4 v0, 0x0

    return v0
.end method

.method public loadcartdata()V
    .locals 20

    .prologue
    .line 113
    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/example/m6wmr/CartlistActivity;->shoplayout:Landroid/widget/LinearLayout;

    invoke-virtual {v1}, Landroid/widget/LinearLayout;->removeAllViews()V

    .line 114
    new-instance v13, LPlugclass/ImageLoader;

    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/example/m6wmr/CartlistActivity;->mcontext:Landroid/content/Context;

    invoke-direct {v13, v1}, LPlugclass/ImageLoader;-><init>(Landroid/content/Context;)V

    .line 115
    .local v13, "imageLoader":LPlugclass/ImageLoader;
    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/example/m6wmr/CartlistActivity;->shopstr:Ljava/lang/String;

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 116
    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/example/m6wmr/CartlistActivity;->mcontext:Landroid/content/Context;

    const v2, 0x7f03007d

    const/4 v3, 0x0

    invoke-static {v1, v2, v3}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v19

    .line 117
    .local v19, "tempview":Landroid/view/View;
    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/example/m6wmr/CartlistActivity;->shoplayout:Landroid/widget/LinearLayout;

    move-object/from16 v0, v19

    invoke-virtual {v1, v0}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 163
    .end local v19    # "tempview":Landroid/view/View;
    :cond_0
    :goto_0
    return-void

    .line 120
    :cond_1
    :try_start_0
    new-instance v15, Lorg/json/JSONObject;

    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/example/m6wmr/CartlistActivity;->shopstr:Ljava/lang/String;

    invoke-direct {v15, v1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 121
    .local v15, "json":Lorg/json/JSONObject;
    const-string v1, "msg"

    invoke-virtual {v15, v1}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v14

    .line 122
    .local v14, "jarray":Lorg/json/JSONArray;
    const/4 v11, 0x0

    .local v11, "i":I
    :goto_1
    invoke-virtual {v14}, Lorg/json/JSONArray;->length()I

    move-result v1

    if-ge v11, v1, :cond_0

    .line 123
    const-string v1, "CartlistActivity"

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "\u70b9\u51fb\u8d2d\u7269\u8f66\u5e97\u94fa\u6392\u5e8f"

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, v11}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 124
    invoke-virtual {v14, v11}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v1

    const-string v2, "id"

    invoke-virtual {v1, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    move-object/from16 v0, p0

    invoke-virtual {v0, v1}, Lcom/example/m6wmr/CartlistActivity;->cartCount(I)V

    .line 125
    move-object/from16 v0, p0

    iget v1, v0, Lcom/example/m6wmr/CartlistActivity;->gdshu:I

    if-lez v1, :cond_2

    .line 126
    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/example/m6wmr/CartlistActivity;->mcontext:Landroid/content/Context;

    const v2, 0x7f030056

    const/4 v3, 0x0

    invoke-static {v1, v2, v3}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v19

    .line 131
    .restart local v19    # "tempview":Landroid/view/View;
    invoke-virtual {v14, v11}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v1

    const-string v2, "id"

    invoke-virtual {v1, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    move-object/from16 v0, v19

    invoke-virtual {v0, v1}, Landroid/view/View;->setId(I)V

    .line 133
    const v1, 0x7f0c009b

    move-object/from16 v0, v19

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v17

    check-cast v17, Landroid/widget/TextView;

    .line 134
    .local v17, "shopname":Landroid/widget/TextView;
    invoke-virtual {v14, v11}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v1

    const-string v2, "shopname"

    invoke-virtual {v1, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    move-object/from16 v0, v17

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 137
    const v1, 0x7f0c0127

    move-object/from16 v0, v19

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v7

    check-cast v7, Landroid/widget/TextView;

    .line 138
    .local v7, "allcost":Landroid/widget/TextView;
    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "\uffe5"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, p0

    iget-wide v2, v0, Lcom/example/m6wmr/CartlistActivity;->gdcost:D

    invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v7, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 140
    const v1, 0x7f0c0232

    move-object/from16 v0, v19

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v16

    check-cast v16, Landroid/widget/TextView;

    .line 141
    .local v16, "shangpinshu":Landroid/widget/TextView;
    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "\u5546\u54c1\u6570\u91cf\uff1a"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, p0

    iget v2, v0, Lcom/example/m6wmr/CartlistActivity;->gdshu:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    move-object/from16 v0, v16

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 144
    const v1, 0x7f0c009d

    move-object/from16 v0, v19

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v12

    .line 143
    check-cast v12, Landroid/widget/ImageView;

    .line 145
    .local v12, "im5":Landroid/widget/ImageView;
    invoke-virtual {v14, v11}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v1

    const-string v2, "shopimg"

    invoke-virtual {v1, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v18

    .line 146
    .local v18, "strurl":Ljava/lang/String;
    move-object/from16 v0, v18

    invoke-virtual {v13, v0, v12}, LPlugclass/ImageLoader;->DisplayImage(Ljava/lang/String;Landroid/widget/ImageView;)V

    .line 147
    const v1, 0x7f0c0233

    move-object/from16 v0, v19

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v10

    check-cast v10, Landroid/widget/TextView;

    .line 148
    .local v10, "gocart":Landroid/widget/TextView;
    const v1, 0x7f0c0234

    move-object/from16 v0, v19

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v8

    check-cast v8, Landroid/widget/TextView;

    .line 149
    .local v8, "delcart":Landroid/widget/TextView;
    new-instance v1, Lcom/example/m6wmr/CartlistActivity$viewClickListener;

    invoke-virtual {v14, v11}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v2

    const-string v3, "id"

    invoke-virtual {v2, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v14, v11}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v2

    const-string v4, "shopname"

    invoke-virtual {v2, v4}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    const-string v5, "0"

    invoke-virtual {v14, v11}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v2

    const-string v6, "shoptype"

    invoke-virtual {v2, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    move-object/from16 v2, p0

    invoke-direct/range {v1 .. v6}, Lcom/example/m6wmr/CartlistActivity$viewClickListener;-><init>(Lcom/example/m6wmr/CartlistActivity;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v10, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 150
    new-instance v1, Lcom/example/m6wmr/CartlistActivity$viewClickListener;

    invoke-virtual {v14, v11}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v2

    const-string v3, "id"

    invoke-virtual {v2, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v14, v11}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v2

    const-string v4, "shopname"

    invoke-virtual {v2, v4}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    const-string v5, "1"

    invoke-virtual {v14, v11}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v2

    const-string v6, "shoptype"

    invoke-virtual {v2, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    move-object/from16 v2, p0

    invoke-direct/range {v1 .. v6}, Lcom/example/m6wmr/CartlistActivity$viewClickListener;-><init>(Lcom/example/m6wmr/CartlistActivity;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v8, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 152
    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/example/m6wmr/CartlistActivity;->shoplayout:Landroid/widget/LinearLayout;

    move-object/from16 v0, v19

    invoke-virtual {v1, v0}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    .line 122
    .end local v7    # "allcost":Landroid/widget/TextView;
    .end local v8    # "delcart":Landroid/widget/TextView;
    .end local v10    # "gocart":Landroid/widget/TextView;
    .end local v12    # "im5":Landroid/widget/ImageView;
    .end local v16    # "shangpinshu":Landroid/widget/TextView;
    .end local v17    # "shopname":Landroid/widget/TextView;
    .end local v18    # "strurl":Ljava/lang/String;
    .end local v19    # "tempview":Landroid/view/View;
    :cond_2
    add-int/lit8 v11, v11, 0x1

    goto/16 :goto_1

    .line 156
    .end local v11    # "i":I
    .end local v14    # "jarray":Lorg/json/JSONArray;
    .end local v15    # "json":Lorg/json/JSONObject;
    :catch_0
    move-exception v9

    .line 158
    .local v9, "e":Lorg/json/JSONException;
    invoke-virtual {v9}, Lorg/json/JSONException;->printStackTrace()V

    .line 159
    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/example/m6wmr/CartlistActivity;->mcontext:Landroid/content/Context;

    const v2, 0x7f03007d

    const/4 v3, 0x0

    invoke-static {v1, v2, v3}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v19

    .line 160
    .restart local v19    # "tempview":Landroid/view/View;
    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/example/m6wmr/CartlistActivity;->shoplayout:Landroid/widget/LinearLayout;

    move-object/from16 v0, v19

    invoke-virtual {v1, v0}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    goto/16 :goto_0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 4
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 60
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 61
    const v2, 0x7f03000b

    invoke-virtual {p0, v2}, Lcom/example/m6wmr/CartlistActivity;->setContentView(I)V

    .line 63
    invoke-virtual {p0}, Lcom/example/m6wmr/CartlistActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    check-cast v2, Lmyapp/MyApp;

    iput-object v2, p0, Lcom/example/m6wmr/CartlistActivity;->m:Lmyapp/MyApp;

    .line 64
    iget-object v2, p0, Lcom/example/m6wmr/CartlistActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v2}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v0

    .line 65
    .local v0, "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 66
    iput-object p0, p0, Lcom/example/m6wmr/CartlistActivity;->mcontext:Landroid/content/Context;

    .line 67
    sput-object p0, Lcom/example/m6wmr/CartlistActivity;->CartAc:Lcom/example/m6wmr/CartlistActivity;

    .line 68
    new-instance v2, Ldbclass/DBOpenHelper;

    iget-object v3, p0, Lcom/example/m6wmr/CartlistActivity;->mcontext:Landroid/content/Context;

    invoke-direct {v2, v3}, Ldbclass/DBOpenHelper;-><init>(Landroid/content/Context;)V

    iput-object v2, p0, Lcom/example/m6wmr/CartlistActivity;->helper:Ldbclass/DBOpenHelper;

    .line 69
    iget-object v2, p0, Lcom/example/m6wmr/CartlistActivity;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v2}, Ldbclass/DBOpenHelper;->getWritableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v2

    iput-object v2, p0, Lcom/example/m6wmr/CartlistActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    .line 72
    const/high16 v2, 0x7f0c0000

    invoke-virtual {p0, v2}, Lcom/example/m6wmr/CartlistActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/LinearLayout;

    .line 73
    .local v1, "top":Landroid/widget/LinearLayout;
    iget-object v2, p0, Lcom/example/m6wmr/CartlistActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v2}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v2

    const-string v3, "1"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 74
    const v2, 0x7f070026

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 77
    :cond_0
    new-instance v2, Lcom/example/m6wmr/CartlistActivity$1;

    invoke-direct {v2, p0}, Lcom/example/m6wmr/CartlistActivity$1;-><init>(Lcom/example/m6wmr/CartlistActivity;)V

    iput-object v2, p0, Lcom/example/m6wmr/CartlistActivity;->h:Landroid/os/Handler;

    .line 108
    const v2, 0x7f0c004c

    invoke-virtual {p0, v2}, Lcom/example/m6wmr/CartlistActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/LinearLayout;

    iput-object v2, p0, Lcom/example/m6wmr/CartlistActivity;->shoplayout:Landroid/widget/LinearLayout;

    .line 109
    invoke-virtual {p0}, Lcom/example/m6wmr/CartlistActivity;->bindbtn()V

    .line 110
    invoke-virtual {p0}, Lcom/example/m6wmr/CartlistActivity;->getShopSource()Z

    .line 111
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 2
    .param p1, "keyCode"    # I
    .param p2, "event"    # Landroid/view/KeyEvent;

    .prologue
    const/4 v1, 0x0

    .line 320
    const/4 v0, 0x4

    if-ne p1, v0, :cond_0

    invoke-virtual {p2}, Landroid/view/KeyEvent;->getRepeatCount()I

    move-result v0

    if-nez v0, :cond_0

    .line 321
    invoke-virtual {p0}, Lcom/example/m6wmr/CartlistActivity;->finish()V

    .line 324
    :cond_0
    return v1
.end method
